icon.setIconSize(this.iconSize);
// Don't animate the icon size change when the overview
- // is not visible or when initially filling the dash
- if (!Main.overview.visible || !this._shownInitially)
+ // is transitioning, not visible or when initially filling
+ // the dash
+ if (!Main.overview.visible || Main.overview.animationInProgress ||
+ !this._shownInitially)
continue;
let [targetWidth, targetHeight] = icon.icon.get_size();
for (let i = 0; i < removedActors.length; i++) {
let item = removedActors[i]._delegate;
- // Don't animate item removal when the overview is hidden
- if (Main.overview.visible)
+ // Don't animate item removal when the overview is transitioning
+ // or hidden
+ if (Main.overview.visible && !Main.overview.animationInProgress)
item.animateOutAndDestroy();
else
item.destroy();
return;
}
- // Don't animate item addition when the overview is hidden
- if (!Main.overview.visible)
+ // Don't animate item addition when the overview is transitioning
+ // or hidden
+ if (!Main.overview.visible || Main.overview.animationInProgress)
return;
for (let i = 0; i < addedItems.length; i++)